import 'package:flutter/cupertino.dart';
import 'package:flutter_progress_hud/flutter_progress_hud.dart';


///显示hud
void showHud(BuildContext context,{String title=''}){
  final progress = ProgressHUD.of(context);
  if (title.length>0) {
      progress.showWithText(title);
  } else {
      progress.show();
  }
}

///显示hud
void dismissHud(BuildContext context){
  final progress = ProgressHUD.of(context);
  progress.dismiss();
}